import myAxios from "@/request";

/**
 * 获取动画列表
 * @param params
 */
export const animationList = async (params: any) => {
  const res = await myAxios.request({
    url: "/animation/list",
    method: "get",
    params: {
      params,
    },
  });
  return res;
};

/**
 * 获取主页展示动画列表(TV动画与剧场版)
 * @param params
 */
export const homeAnimationList = async () => {
  const res = await myAxios.request({
    url: "/animation/homeList",
    method: "get",
  });
  return res;
};
